package com.ruoyi.system.pojo.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * Description:
 *
 * @author JourWon
 * @date Created on 2025/5/13
 */
@Data
@TableName("tb_user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer roleId;
    private String userName;
    private String loginName;
    private String password;
    private String secret;
    private String roleCode;
    private String mobile;
    private Long regionId;
    private String regionName;
    private Boolean status;
    private String image;

    @TableField(exist = false)
    private Role role;

    @TableField(exist = false)
    private String token; // token
}
